package com.etoak.service.impl;

import com.etoak.bean.User;
import com.etoak.mapper.UserMapper;
import com.etoak.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.jws.WebParam;
import javax.jws.WebService;

@WebService(
        serviceName = "UserServiceWs",
        portName = "UserServicePort"
)
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public User queryById(@WebParam(name = "id") int id) {
        return userMapper.queryById(id);
    }
}
